import { createPinia } from 'pinia';
import type { App } from 'vue'
import useLoginStore from '@/store/login/login'
import { localCache } from '@/utils/cache'
const pinia = createPinia()


function registerStore(app: App) {
  app.use(pinia)
  const loginStore = useLoginStore()
  loginStore.updateUserInfo()
}

export default registerStore